package com.sgzn.sgpay.model.request;

import com.sgzn.sgpay.model.request.util.PageQueryParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 设备分页查询请求
 * @author zhongzhongyong
 * @version Id: SgsDeviceQueryPageRequest.java, v 0.1 2018/4/26 21:23 zhongzhongyong Exp $$
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class SgsDeviceQueryPageRequest extends SgsMerchantBaseRequest {

    /**
     * 分页参数
     */
    @NotNull
    private PageQueryParam pageQueryParam;

    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 归属商户ID
     */
    private String merchantId;

    /**
     * 归属门店ID
     */
    private String shopId;

    /**
     * 设备状态
     */
    @Pattern(regexp = "01|02",message = "设备状态入参格式错误")
    private String state;
}
